package net.webparation.portlet;

import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;

/**
 * Interface for implementing an action command to be executed by a portlet
 * action.
 *
 * @author <a href="mailto:allan.lykke.christensen@gmail.com">Allan Lykke Christensen</a>
 */
public interface ActionCommand {
    
    /**
     * Executes the command.
     *
     * @param request
     *            {@link ActionRequest} from the user request.
     * @param response
     *            {@link ActionResponse} in the user request.
     */
    public void execute (ActionRequest request, ActionResponse response);
    
}
